package org.jeecg.modules.flow.service;

import org.jeecg.modules.flow.entity.FlowDetail;
import org.jeecg.modules.flow.entity.Flow;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.flow.entity.FlowVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 流程表
 * @Author: jeecg-boot
 * @Date:   2020-07-24
 * @Version: V1.0
 */
public interface IFlowService extends IService<Flow> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(Flow flow, List<FlowDetail> flowDetailList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(Flow flow, List<FlowDetail> flowDetailList);

	/**
	 * 删除一对多
	 */
	public void delMain(String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
	List<FlowVo> selectAll();

}
